using UnityEngine;
using QFramework;

namespace QFramework.FlappyBird
{
	public partial class Background : ViewController
	{
		void Start()
		{
			// Code Here
		}

        private void Update()
        {
			transform.Translate(-1f * Time.deltaTime, 0, 0);

			if(transform.position.x < - 70)
			{
				transform.PositionX(130);
			}
        }
    }
}
